package com.qf.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.aspectj.AspectJAroundAdvice;

public class Around implements MethodInterceptor {
    private Object proceed;

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        //环绕前
        System.out.println("环绕前:。。。。。。。。。");
        proceed = invocation.proceed();
        System.out.println("环绕后：。。。。。。");
        return proceed;
    }
}
